package com.jzj.service.impl;

import com.jzj.mapper.BookMapper;
import com.jzj.pojo.Book;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class BookServiceImpl implements BookService{


    @Autowired
    private BookMapper bookMapper;


    @Override
    public int addBook() {
        return bookMapper.addBook();
    }

    @Override
    public int delBook() {
        return bookMapper.delBook();
    }

    @Override
    public int updateBook() {
        return bookMapper.updateBook();
    }

    @Override
    public List<Book> selectBook() {
        return bookMapper.selectBook();
    }
    .
    @Override
    public Book selectOneBook(int id) {
        return bookMapper.selectOneBook(id);
    }
}
